import { createRouter, createWebHistory } from 'vue-router'
import QuestionAnswer from '../views/QuestionAnswer.vue'
import QuestionHistory from '../views/QuestionHistory.vue'
import UnansweredQuestions from '../views/UnansweredQuestions.vue'
import SopGeneration from '../views/SopGeneration.vue'
import DocumentManagement from '../views/DocumentManagement.vue'

const routes = [
  {
    path: '/',
    redirect: '/qa'
  },
  {
    path: '/qa',
    name: 'QuestionAnswer',
    component: QuestionAnswer
  },
  {
    path: '/history',
    name: 'QuestionHistory',
    component: QuestionHistory
  },
  {
    path: '/unanswered',
    name: 'UnansweredQuestions',
    component: UnansweredQuestions
  },
  {
    path: '/sop',
    name: 'SopGeneration',
    component: SopGeneration
  },
  {
    path: '/documents',
    name: 'DocumentManagement',
    component: DocumentManagement
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
